package org.enhance.async.init.config;

import org.enhance.async.init.service.HelloService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 注入bean配置类
 *
 * @author wenpan 2023/06/11 22:25
 */
@Configuration
public class InjectBeanConfig {

    /**
     * 异步执行HelloService初始化方法
     */
//    @BasisAsyncInit
    @Bean(initMethod = "init")
    public HelloService helloService() {
        return new HelloService();
    }

}
